home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / dmail11d.zip / DMXFER.ZIP / DMXFER3.BAT < prev    next >
DOS Batch File  |  1991-10-19  |  2KB  |  42 lines

  1. @echo off
  2. rem DATAMAIL File Transfer Batch #3
  3. rem This Batch file Sends/Receives via HyperP
  4. rem
  5. rem *******************************************************************
  6. rem
  7. rem  parameters to batch file:
  8. rem       1:  R = Recieve a file (User is uploading)
  9. rem           S = Send a file (User is downloading)
  10. rem       2:  Full Drive:\Path\Filename.Ext to send/receive
  11. rem       3:  Communications port in use (1=COM1, 2=COM2, etc.)
  12. rem       4:  DTE/DCE bps rate (BBS PC-to-BBS Modem bps rate)
  13. rem       5:  Modem/Modem bps rate (BBS Modem-to-User Modem bps rate)
  14. rem       6:  UART Base address in hex. (for non-standard COMx Sysops)
  15. rem       7:  UART Base address in dec. (for non-standard COMx Sysops)
  16. rem       8:  IRQ Number (for non-standard COMx Sysops)
  17. rem
  18. rem *******************************************************************
  19. rem
  20. rem Place any set-up/initialization work here... Delete these lines if none
  21. rem
  22. rem *******************************************************************
  23. rem
  24.    if %1! == R! goto RECEIVE
  25. :SEND
  26.    HyperP BAUD:%4 PORT:%3 @HYPERPDN.OPT %2
  27.    goto TERMINUS
  28. :RECEIVE
  29.    HyperP BAUD:%4 PORT:%3 @HYPERPUP.OPT %2
  30.    if ERRORLEVEL == 1 goto ERROR
  31.    goto TERMINUS
  32. :ERROR
  33.    if exist %2 del %2
  34. :TERMINUS
  35. rem
  36. rem *******************************************************************
  37. rem
  38. rem Place any wrap-up/termination work here... Delete these lines if none
  39. rem
  40. rem *******************************************************************
  41. rem
  42.